javascript interview coding examples